package com.autoool;

import com.autoool.utils.HttpClientUtil;
import com.autoool.utils.OkHttpUtil;
import okhttp3.OkHttpClient;

import java.io.IOException;
import java.net.URISyntaxException;

/**
 * @author sam
 * 2021/7/4 17:49
 * @description
 * @editor
 * @description
 */
public class OkHttpClientTest {

    public static void main(String[] args) throws IOException, URISyntaxException {
        String url = "http://localhost:8801/test";
        String result = HttpClientUtil.doGet(url);
//     String result = OkHttpUtil.doGet(url);
        System.out.println(result);
    }
}
